﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PassengerDiveAnim : StateMachineBehaviour
{
    public override void OnStateEnter(Animator animator, AnimatorStateInfo animatorStateInfo, int layerIndex)
    {
        PassengerManager.Instance.currentPassenger.Remove(animator.transform.parent.gameObject);
        Destroy(animator.transform.parent.gameObject);
    }
}
